package com.learn.xueer.ui.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.learn.xueer.R
import com.learn.xueer.data.model.bean.BannerInfo

class HomeExpandAdapter(data: MutableList<BannerInfo>) :
    BaseQuickAdapter<BannerInfo, BaseViewHolder>(R.layout.item_home_expand, data) {
    override fun convert(holder: BaseViewHolder, item: BannerInfo) {
        Glide.with(context)
            .load(item.image)
            .into(holder.getView(R.id.itemIcon))
        holder.setText(R.id.itemTitle, item.title)
    }
}